﻿<UserControl 
  x:Class="DC_RackSLDE.MainPage"
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation" 
  xmlns:uriMapper="clr-namespace:System.Windows.Navigation;assembly=System.Windows.Controls.Navigation"
  xmlns:dataControls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data.DataForm.Toolkit" 
  xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
  mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="600">

    <Grid x:Name="LayoutRoot" Style="{StaticResource LayoutRootGridStyle}">

        <StackPanel Name="spContent" Orientation="Horizontal" >
            <Border x:Name="hlBorder" Style="{StaticResource ContentBorderStyle}" Width="160" Height="480">
                <ScrollViewer VerticalScrollBarVisibility="Auto">
                    <StackPanel Name="spHyperlinks" Orientation="Vertical">
                    <TextBlock Text="Location Data" 
                               TextDecorations="Underline" FontSize="13.333" FontStyle="Italic"/>
                    <HyperlinkButton x:Name="hl_tblClient" Style="{StaticResource NewLinkStyle}" 
                                     NavigateUri="/dataLocation/vwtblClient" 
                                     TargetName="ContentFrame" 
                                     Content="tblClient"/>
                    <HyperlinkButton x:Name="hl_tblLocation" Style="{StaticResource NewLinkStyle}" 
                                     NavigateUri="/dataLocation/vwtblLocation" 
                                     TargetName="ContentFrame" 
                                     Content="tblLocation"/>
                    <HyperlinkButton x:Name="hl_tblAttrLocation" Style="{StaticResource NewLinkStyle}" 
                                     NavigateUri="/dataLocation/vwtblAttrLocation" 
                                     TargetName="ContentFrame" 
                                     Content="tblAttrLocation"/>
                    <HyperlinkButton x:Name="hl_tblAttrCabinetRow" Style="{StaticResource NewLinkStyle}" 
                                     NavigateUri="/dataLocation/vwtblAttrCabinetRow" 
                                     TargetName="ContentFrame" 
                                     Content="tblAttrCabinetRow"/>
                    <HyperlinkButton x:Name="hl_tblAttrCabinet" Style="{StaticResource NewLinkStyle}" 
                                     NavigateUri="/dataLocation/vwtblAttrCabinet" 
                                     TargetName="ContentFrame" 
                                     Content="tblAttrCabinet"/>
                        <TextBlock Text="Base Data"
                                   TextDecorations="Underline" FontSize="13.333" FontStyle="Italic"/>
                    <HyperlinkButton x:Name="hl_tblAttrAsset" Style="{StaticResource NewLinkStyle}" 
                                     NavigateUri="/dataBase/vwtblAttrAsset" 
                                     TargetName="ContentFrame" 
                                     Content="tblAttrAsset"/>
                    <HyperlinkButton x:Name="hl_tblDGMaster" Style="{StaticResource NewLinkStyle}" 
                                     NavigateUri="/dataBase/vwtblDGMasters" 
                                     TargetName="ContentFrame" 
                                     Content="tblDGMaster"/>
                    <HyperlinkButton x:Name="hl_tblProductData" Style="{StaticResource NewLinkStyle}" 
                                     NavigateUri="/dataBase/vwtblProductData" 
                                     TargetName="ContentFrame" 
                                     Content="tblProductData"/>
                    <HyperlinkButton x:Name="hl_tblComponent" Style="{StaticResource NewLinkStyle}" 
                                     NavigateUri="/dataBase/vwtblComponent" 
                                     TargetName="ContentFrame" 
                                     Content="tblComponent"/>
                    <HyperlinkButton x:Name="hl_tblAttrDraw" Style="{StaticResource NewLinkStyle}" 
                                     NavigateUri="/dataBase/vwtblAttrDraw" 
                                     TargetName="ContentFrame" 
                                     Content="tblAttrDraw"/>
                    <TextBlock Text="Application Data"
                               TextDecorations="Underline" FontSize="13.333" FontStyle="Italic"/>
                    <HyperlinkButton x:Name="hl_tblAppConnection" Style="{StaticResource NewLinkStyle}" 
                                     NavigateUri="/dataApplication/vwtblAppConnection" 
                                     TargetName="ContentFrame" 
                                     Content="tblAppConnection"/>
                    <HyperlinkButton x:Name="hl_tblAppSolution" Style="{StaticResource NewLinkStyle}" 
                                     NavigateUri="/dataApplication/vwtblAppSolution" 
                                     TargetName="ContentFrame" 
                                     Content="tblAppSolution"/>
                    <HyperlinkButton x:Name="hl_tblAttrApplication" Style="{StaticResource NewLinkStyle}" 
                                     NavigateUri="/dataApplication/vwtblAttrApplication" 
                                     TargetName="ContentFrame" 
                                     Content="tblAttrApplication"/>
                    <HyperlinkButton x:Name="hl_tblAttrOperatingSystem" Style="{StaticResource NewLinkStyle}" 
                                     NavigateUri="/dataApplication/vwtblAttrOperatingSystem" 
                                     TargetName="ContentFrame" 
                                     Content="tblAttrOperatingSystem"/>
                    <HyperlinkButton x:Name="hl_tblAttrProcessor" Style="{StaticResource NewLinkStyle}" 
                                     NavigateUri="/dataApplication/vwtblAttrProcessor" 
                                     TargetName="ContentFrame" 
                                     Content="tblAttrProcessor"/>
                    <HyperlinkButton x:Name="hl_tblAttrVirtualHost" Style="{StaticResource NewLinkStyle}" 
                                     NavigateUri="/dataApplication/vwtblAttrVirtualHost" 
                                     TargetName="ContentFrame" 
                                     Content="tblAttrVirtualHost"/>
                    <TextBlock Text="Network Data"
                               TextDecorations="Underline" FontSize="13.333" FontStyle="Italic"/>
                    <HyperlinkButton x:Name="hl_tblAttrNetwork" Style="{StaticResource NewLinkStyle}" 
                                     NavigateUri="/dataNetwork/vwtblAttrNetwork" 
                                     TargetName="ContentFrame" 
                                     Content="tblAttrNetwork"/>
                    <HyperlinkButton x:Name="hl_tblNetworkLink" Style="{StaticResource NewLinkStyle}" 
                                     NavigateUri="/dataNetwork/vwtblNetworkLink" 
                                     TargetName="ContentFrame" 
                                     Content="tblNetworkLink"/>
                    <HyperlinkButton x:Name="hl_tblAttrPortData" Style="{StaticResource NewLinkStyle}" 
                                     NavigateUri="/dataNetwork/vwtblAttrPortData" 
                                     TargetName="ContentFrame" 
                                     Content="tblAttrPortData"/>
                    <TextBlock Text="Disk Data"
                               TextDecorations="Underline" FontSize="13.333" FontStyle="Italic"/>
                    <HyperlinkButton x:Name="hl_tblAttrDiskLogical" Style="{StaticResource NewLinkStyle}" 
                                     NavigateUri="/dataDisk/vwtblAttrDiskLogical" 
                                     TargetName="ContentFrame" 
                                     Content="tblAttrDiskLogical"/>
                    <HyperlinkButton x:Name="hl_tblAttrDiskPhysical" Style="{StaticResource NewLinkStyle}" 
                                     NavigateUri="/dataDisk/vwtblAttrDiskPhysical" 
                                     TargetName="ContentFrame" 
                                     Content="tblAttrDiskPhysical"/>
                    <HyperlinkButton x:Name="hl_tblAttrExternalStorage" Style="{StaticResource NewLinkStyle}" 
                                     NavigateUri="/dataDisk/vwtblAttrExternalStorage" 
                                     TargetName="ContentFrame" 
                                     Content="tblAttrExternalStorage"/>
                </StackPanel>
                </ScrollViewer>
            </Border>
                <Border x:Name="ContentBorder" Style="{StaticResource ContentBorderStyle}" Width="640" Height="480">
            <navigation:Frame x:Name="ContentFrame" Style="{StaticResource ContentFrameStyle}" 
                              Source="/Home" Navigated="ContentFrame_Navigated" 
                              NavigationFailed="ContentFrame_NavigationFailed">
                <navigation:Frame.UriMapper>
                    <uriMapper:UriMapper>
                        <uriMapper:UriMapping Uri="" MappedUri="/Views/Home.xaml"/>
                        <uriMapper:UriMapping Uri="/{pageName}" MappedUri="/Views/{pageName}.xaml"/>
                    </uriMapper:UriMapper>
                </navigation:Frame.UriMapper>
            </navigation:Frame>
        </Border>
        </StackPanel>

        <Grid Style="{StaticResource NavigationOuterGridStyle}">
            <Grid x:Name="NavigationGrid" Style="{StaticResource NavigationGridStyle}">

                <Border x:Name="BrandingBorder" Style="{StaticResource BrandingBorderStyle}">
                    <StackPanel x:Name="BrandingStackPanel" Style="{StaticResource BrandingStackPanelStyle}">

                        <ContentControl Style="{StaticResource LogoIcon}"/>
                        <TextBlock x:Name="ApplicationNameTextBlock" Style="{StaticResource ApplicationNameStyle}" 
                               Text="{Binding ApplicationStrings.ApplicationName, Source={StaticResource ResourceWrapper}}"/>

                    </StackPanel>
                </Border>

                <Border x:Name="LinksBorder" Style="{StaticResource LinksBorderStyle}">
                    <StackPanel x:Name="LinksStackPanel" Style="{StaticResource LinksStackPanelStyle}">

                        <HyperlinkButton x:Name="Link1" Style="{StaticResource LinkStyle}" 
                                     NavigateUri="/Home" TargetName="ContentFrame" Content="{Binding Path=ApplicationStrings.HomePageTitle, Source={StaticResource ResourceWrapper}}"/>


                        <Rectangle x:Name="Divider1" Style="{StaticResource DividerStyle}"/>

                        <HyperlinkButton x:Name="Link2" Style="{StaticResource LinkStyle}" 
                                     NavigateUri="/About" TargetName="ContentFrame" Content="{Binding Path=ApplicationStrings.AboutPageTitle, Source={StaticResource ResourceWrapper}}"/>

                    </StackPanel>
                </Border>

            </Grid>

            <Border x:Name="loginContainer" Style="{StaticResource LoginContainerStyle}">
                <!-- LoginStatus will be added here in code behind. This is required for the designer view to work -->
            </Border>
        </Grid>

    </Grid>

</UserControl>